﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.Models.DanhMuc
{
    public class AREA
    {
        #region Contructors
        public AREA()
        {
            this.AREA_ID = Common.NullValues.Default_String;
            this.ADM_UNIT_ID = Common.NullValues.Default_String;
            this.AREA_CODE = Common.NullValues.Default_String;
            this.AREA_NAME = Common.NullValues.Default_String;
            this.AREA_DSKHHGD_NAME = Common.NullValues.Default_String;
            this.CENTER_POINT = Common.NullValues.Default_String;
            this.DESCRIPTIONS = Common.NullValues.Default_String;
            this.DELETED = Common.NullValues.Default_Int;
            this.START_DATE = Common.NullValues.Default_Int;
            this.END_DATE = Common.NullValues.Default_Int;
            this.LAST_UPDATED = Common.NullValues.Default_DateTime;
        }
        #endregion

        #region Properties
        [DataMember]
        public string AREA_ID { get; set; }
        [DataMember]
        public string ADM_UNIT_ID { get; set; }
        [DataMember]
        public string AREA_CODE { get; set; }
        [DataMember]
        public string AREA_NAME { get; set; }
        [DataMember]
        public string CENTER_POINT { get; set; }
        [DataMember]
        public string DESCRIPTIONS { get; set; }
        [DataMember]
        public int DELETED { get; set; }
        [DataMember]
        public int START_DATE { get; set; }
        [DataMember]
        public int END_DATE { get; set; }
        [DataMember]
        public DateTime LAST_UPDATED { get; set; }
        [DataMember]
        public string AREA_DSKHHGD_NAME { get; set; }
        #endregion

        #region Field list from Model

        public const string Field_AREA_ID = "AREA_ID";
        public const string Field_ADMINIS_UNIT_ID = "ADM_UNIT_ID";
        public const string Field_AREA_CODE = "AREA_CODE";
        public const string Field_AREA_NAME = "AREA_NAME";
        public const string Field_AREA_DSKHHGD_NAME = "AREA_DSKHHGD_NAME";
        public const string Field_CENTER_POINT = "CENTER_POINT";
        public const string Field_DESCRIPTIONS = "DESCRIPTIONS";
        public const string Field_DELETED = "DELETED";
        public const string Field_START_DATE = "START_DATE";
        public const string Field_END_DATE = "END_DATE";
        public const string Field_LAST_UPDATED = "LAST_UPDATED";

        #endregion
    }

    public class PM3_AREA
    {
        public string AREA_ID { get; set; }
        public string ADM_UNIT_ID { get; set; }
        public string AREA_NAME { get; set; }
        public string ENUMERATOR_ID { get; set; }
        public string ADM_NAME { get; set; }
    }
}
